package com.acme;


public class Test {
        public static void main(String[] args) {
                int v1 = 3;
                byte v2 = (byte)v1;
                System.out.println(v2); // Prints 3
                v1 = 256;
                byte v3 = (byte) v1;
                System.out.println(v3); // Prints 0
                int v4 = 's'; //Takes ASCII Code, s == 115
                System.out.println(v4); // Prints 115
                
                byte v5 = 115; 
                if (v5 == 's') { // Compare ASCII Code of 's' with 115, returns TRUE
                        System.out.println("Equals"); // Prints 'Equals'
                }
                
                System.out.println((double)4); // Converting int 4 to double, prints 4.0
                
                double d = 5;
                System.out.println(d + 1); // Prints 6.0
                
                boolean b = (v4 > 0)?true:false;// This is not C
                
                //short v6 = "short"; // Can't convert String to int.
                
                float v7 = 3.67f; // 3.67 is double by default, we should use f to transform to float
                
                float v9 = 3; // No error because compiler can convert from int to float
                
                int v8 = (int)v7; // But cannot convert from float to int
                
                int array[] = new int[27];
                
                // "There are only two hard things in Computer Science: cache invalidation and naming things" -- Phil Karlton
        }
}
